# Create your views here.
from django.shortcuts import get_object_or_404, render
from turnir.models import Turnament
from players.models import Player

def pat(request):
    p = Player.objects.all()
    context = {'players': p }
    return render(request, 'players/pat.html',context)

def player(request,player_id):
    p = get_object_or_404(Player, pk=player_id)
    return render(request, 'players/player.html', {'player': p})
